<?php

namespace Biz\Resources\Site;

use Lumen\Http\Resources\Json\ResourceCollection;

/**
 * SiteIntroductionTranslationsResourceCollection.
 *
 * @license [http://www.85do.com] [杭州永奥网络科技有限公司]
 * @copyright Copyright (c) 2018-2026 Hangzhou Yongao Technology Co., Ltd. All rights reserved.
 */
class SiteAboutTranslationsResourceCollection extends ResourceCollection
{
    /**
     * Transform the resource into an array.
     *
     * @param \Illuminate\Http\Request $request
     *
     * @return array
     */
    public function toArray($request)
    {
        return $this->resource->map(function ($item) {
            return new SiteAboutTranslationsResource($item);
        });
    }
}
